package com.icourt.learn.optional;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 连接操作
 */
@Data
@Slf4j
public class ConcateStrins {

  @Test
  public void test(){
     List<String> list= Arrays.asList("a","b","c");

     String str=list.parallelStream().collect( Collectors.joining(","));
     log.debug( str );
  }

}
